function delay(time) {
  return new Promise((resolve, reject) => {
    let uid = setTimeout(() => {
      clearTimeout(uid)
      resolve()
    }, time)
  })
}
module.exports = {
  delay
}